package com.itheima.Test07;


import java.util.ArrayList;

public class ClassManager {

    //创建ArrayList集合
        ArrayList<Student> student=  new ArrayList<>();


        //服务
       private  StudentService studentService =  new StudentServiceImpl2();

        public ClassManager(){
            //传入数据
            student.add(new Student("迪丽热巴", '女', 99));
            student.add(new Student("古力娜扎", '女', 100));
            student.add(new Student("马尔扎哈", '男', 80));
            student.add(new Student("卡尔扎巴", '男', 60));

        }

        public void printAllinfo(){
            studentService.printAllinfo(student);
        }

        public void avgprintInfo(){
        studentService.printAverageScore(student);
    }

}
